package com.eportal.params.background.TUsers;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * 住户审核参数
 * Created by Saber on 2017/8/10.
 */
public class AuditParam {

    /**
     * sId
     */
    @NotNull(message = "唯一标识必传")
    private Long sId ;

    /**
     * 合作方code ,如果前台不传,则后台默认当前用户的agtCode
     */
    private String agtCode;

    /**
     *  状态 1:通过   2:拒绝
     */
    @NotEmpty(message = "状态必传")
    private String status ;

    /**
     * 共有钥匙id集合,用 , 分割
     */
    private String pubId ;

    /**
     * 私有钥匙id集合,用 , 分割
     */
    private String prvId ;

    /**
     * 有效时间
     */
    @NotEmpty(message = "有效时间必选")
    private String validityDate ;

    /**
     * 社区id  ,如果前台不传,则后台默认当前用户的communityId
     */
    private String communityId ;

    /**
     * 房租状态   1:自住  2:出租  3:空置
     */
    @NotEmpty(message = "房租状态必选")
    private String roomStatus;

    /**
     * 钥匙配发 为1表示默认  此时 pubId 和 prvId 为空（不传）,flag不传时 pubId 和 prvId不能为空
     */
    @NotEmpty(message = "钥匙配发必选")
    private String flag ;


    public String getAgtCode() {
        return agtCode;
    }

    public void setAgtCode(String agtCode) {
        this.agtCode = agtCode;
    }

    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getPrvId() {
        return prvId;
    }

    public void setPrvId(String prvId) {
        this.prvId = prvId;
    }

    public String getPubId() {
        return pubId;
    }

    public void setPubId(String pubId) {
        this.pubId = pubId;
    }

    public String getRoomStatus() {
        return roomStatus;
    }

    public void setRoomStatus(String roomStatus) {
        this.roomStatus = roomStatus;
    }

    public Long getsId() {
        return sId;
    }

    public void setsId(Long sId) {
        this.sId = sId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getValidityDate() {
        return validityDate;
    }

    public void setValidityDate(String validityDate) {
        this.validityDate = validityDate;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("AuditParam{");
        sb.append("agtCode='").append(agtCode).append('\'');
        sb.append(", sId='").append(sId).append('\'');
        sb.append(", status='").append(status).append('\'');
        sb.append(", pubId='").append(pubId).append('\'');
        sb.append(", prvId='").append(prvId).append('\'');
        sb.append(", validityDate='").append(validityDate).append('\'');
        sb.append(", communityId='").append(communityId).append('\'');
        sb.append(", roomStatus='").append(roomStatus).append('\'');
        sb.append(", flag='").append(flag).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
